imxrt-uart-panic
This crate provides a UART based panic handler for i.MX RT.
Upon panic, it resets the given UART peripheral and writes an error message to it.
Usage Example
- examples are intended for the Teensy 4.0, Teensy 4.1 or Teensy MicroMod board -
use teensy4_bsp as bsp;
use ;
register!;
!
panicked at examples\minimal.rs:11:5:
Foo!
Additionally, one can provide a custom panic action, such as teensy4_panic::sos
,
that will be executed after printing to UART:
use teensy4_bsp as bsp;
use ;
register!;
!
This crate is fully compatible with other previous usages of the given UART peripheral, although it might abort transmissions that are already in progress.